package com.lesso.yjy.sunflower.infra.assembler;

import com.lesso.yjy.sunflower.model.AttendanceRule;
import com.lesso.yjy.sunflower.pojo.dto.AttendanceRuleDTO;
import com.lesso.yjy.sunflower.pojo.vo.AttendanceRuleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AttendanceRuleAssembler {
    AttendanceRuleAssembler INSTANCE = Mappers.getMapper(AttendanceRuleAssembler.class);

    AttendanceRule dtoToEntity(AttendanceRuleDTO dto);

    AttendanceRuleVO entityToVO(AttendanceRule rule);

    List<AttendanceRuleVO> entityListToVOList(List<AttendanceRule> rules);
}
